package com.gupao.jly521.decorator.wrapper;

import com.gupao.jly521.decorator.bean.ResultMsg;
import com.gupao.jly521.decorator.service.ISignService;
import com.gupao.jly521.decorator.service.impl.SignServiceImpl;

/**
 * @author Jly
 * @date 2018/9/4  9:08
 */
public class SignServiceImplWrapper implements ISignService {

    ISignService service = new SignServiceImpl();

    @Override
    public ResultMsg login(String name, String pwd){
        //密码加解密等操作
        ResultMsg rmsg = service.login(name,pwd);
        rmsg.setMsg(rmsg.getMsg()+"!!!");
        return rmsg;
    }

    @Override
    public ResultMsg regist(String name,String pwd){
        ResultMsg rmsg = service.regist(name,pwd);
        rmsg.setMsg(rmsg.getMsg()+"!!!");
        return rmsg;
    }
}
